.container {
  width: 25%;
  height: 80%;
  overflow-y: auto;
  margin: 20px auto;
  border: 1px gainsboro solid;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
}
.container::-webkit-scrollbar {
  width: 4px;
}

.container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
}
.filter-bar {
  position: sticky;
  top: -10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  width: 100%;
  background-color: #fff;
  min-height: 40px;
  padding-bottom: 5px;
  z-index: 1;
  .bar-item {
    flex: 1;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
  }
  .bar-item:hover::after {
    width: 100%;
    transition: 0.3s all;
  }

  .bar-item::after {
    content: '';
    width: 0%;
    height: 5px;
    background-color: red;
    position: absolute;
    top: 100%;
    left: 0;
    border-radius: 4px;
  }
  .active::after {
    width: 100%;
    height: 5px;
    background-color: red;
    position: absolute;
    top: 100%;
    left: 0;
    border-radius: 4px;
  }
}
.product-list {
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 10px;
  .product-item {
    display: flex;
    flex-direction: column;
    gap: 5px;

    .item-title {
      min-height: 42px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: start;
      font-weight: 600;
      .title-icon {
        width: 18px;
        height: 18px;
        transform: translateY(3px);
      }
    }
    .item-price {
      display: flex;
      align-items: baseline;
      gap: 10px;
      height: auto;
      span {
        color: rgb(241, 105, 139);
        font-size: 16px;
        font-weight: normal;
      }
      s {
        color: gray;
        font-size: 12px;
      }
    }
    .item-btm {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      .btm-item {
        span {
          display: inline-flex;
          padding: 2px 5px;
          border-radius: 4px;
          justify-content: center;
          align-items: center;
          box-sizing: border-box;
          height: 20px;
        }
      }
      .btm-couponAmount {
        span:first-child {
          color: #fff;
          background-color: rgb(247, 36, 89);
        }
        span:last-child {
          color: rgb(247, 36, 89);
          border: 1px solid rgb(247, 36, 89);
          min-width: 30px;
        }
      }
      .btm-incomeAmount {
        span:first-child {
          color: #fff;
          background-color: rgb(97, 61, 255);
          border-top-right-radius: 0;
          border-bottom-right-radius: 0;
        }
        span:last-child {
          color: rgb(97, 61, 255);
          border-top-left-radius: 0;
          border-bottom-left-radius: 0;
          border: 1px solid rgb(97, 61, 255);
          min-width: 20px;
        }
      }
    }
  }
  .product-img {
    border-radius: 10px;
  }
}
.product-item img {
  width: 100%;
}
.loading {
  margin-top: 10px;
  width: 100%;
  text-align: center;
}
